package com.tgram.android_mapapi;
import com.esri.android.map.MapView;
import com.tgram.android_mapapi.map.ArcgisWebTileLayer;
import com.tgram.android_mapapi.map.ConstantsSetting;
import com.tgram.android_mapapi.map.LocationManager;
import com.tgram.android_mapapi.map.MapManager;
import com.tgram.android_mapapi.map.MapUtil;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;

public class MainActivity extends Activity {
	private Context context;
	private MapView map;
	private MapManager mapmanager;
	private ArcgisWebTileLayer arcgiswebTileLayer;
	private LocationManager mLocationManager;
	private long time=5*60*1000; 
		@Override
		protected void onCreate(Bundle savedInstanceState) {
			super.onCreate(savedInstanceState);
			setContentView(R.layout.activity_main);
			initData();
			initView();
			initMap();
//			initListener();
		}
		private void initData(){
			context =MainActivity.this;
		}
		private void initView(){
			map=(MapView)findViewById(R.id.map);
			mapmanager=new MapManager(this, map);

		}
		private void initMap(){
			map.removeAll();
			arcgiswebTileLayer=new ArcgisWebTileLayer(ConstantsSetting.Map_URL_HANGZHOU);
			mapmanager.initBaseLayer(arcgiswebTileLayer).startMap();
		}
		
	
}
